cmake_minimum_required(VERSION 2.8)


project(FireRay)

SET(CMAKE_CXX_FLAGS  "${CMAKE_CXX_FLAGS} -std=c++11")
add_definitions(-DEXPORT_API -DUSE_EMBREE)

file(GLOB_RECURSE  FireRay_SOURCE_FILES ./src/*.* ./include/*.*)


include_directories(${OPENCL_INCLUDE_DIRS} ./include ../CLW/include ../Calc/include ../GLEW/include F:/wxfworkspace/freeglut/include
	F:/deps-vs2015-x64-installed/embree/include)

link_directories(${PROJECT_BINARY_DIR}/../Debug F:/wxfworkspace/freeglut/lib/x64/Debug
	F:/deps-vs2015-x64-installed/embree/lib)

add_library(${PROJECT_NAME} SHARED ${FireRay_SOURCE_FILES})


target_link_libraries(${PROJECT_NAME} ${OPENCL_LIBRARIES} embree.lib Calc.lib CLW.lib GLEW.lib freeglut.lib)

SET(LIBRARY_OUTPUT_PATH  ${PROJECT_BINARY_DIR}/../)